<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;


Route::pattern([
    'name' => '\w+',
    'id'   => '\d+',
]);


Route::get('/','index')->ext('html');

Route::get('message/index$','Message/index')->ext('html')->name('message');
Route::rule('message/add$','Message/add','GET|POST')->ext('html')->name('message_add');

Route::get('page/<name>$','Page/index')->ext('html')->name('page');

Route::get('<name>$','Archives/index')->ext('html')->name('index');
Route::get('<name>/<id>$','Archives/show')->ext('html')->name('show');


Route::miss('index/miss');